if (&ent->list != &dma_map_head) {
off = dma_handle - ent->dma;
BUG_ON((off + size) > ent->size);
- if (direction != DMA_TO_DEVICE)
+ /*if (direction != DMA_TO_DEVICE)*/
memcpy(ent->host+off, ent->bounce+off, size);
}
}
if (&ent->list != &dma_map_head) {
off = dma_handle - ent->dma;
BUG_ON((off + size) > ent->size);
- if (direction != DMA_FROM_DEVICE)
+ /*if (direction != DMA_FROM_DEVICE)*/
memcpy(ent->bounce+off, ent->host+off, size);
}
}
if (&ent->list != &dma_map_head) {
off = dma_handle - ent->dma;
BUG_ON((off + size) > ent->size);
- if (direction != DMA_TO_DEVICE)
+ /*if (direction != DMA_TO_DEVICE)*/
memcpy(ent->host+off, ent->bounce+off, size);
}
}
if (&ent->list != &dma_map_head) {
off = dma_handle - ent->dma;
BUG_ON((off + size) > ent->size);
- if (direction != DMA_FROM_DEVICE)
+ /*if (direction != DMA_FROM_DEVICE)*/
memcpy(ent->bounce+off, ent->host+off, size);
}
}